<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="/style/cssMain.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/style/jQuery.js"></script>
    <script type="text/javascript" src="/style/jsMain.js"></script>
  </head>
  
  <body>
    <div id="eBody">
      <div class="eTitle">用户管理</div>
      <div class="eTool">
        <ul>
          <li><a href="<?php echo site_url('mang/users/action'); ?>">添加用户</a></li>
        </ul>
      </div>
      <div class="eTag">
        <ul>
          <li class="eSelected">所有用户</li>
        </ul>
      </div>
      <div class="eSheet eBorder">
        <form id="Romeo" method="post">
        <div class="eList">
		  <?php foreach($userList as $key => $item): ?>
          <dl>
            <dt><?php echo $key + 1; ?></dt>
            <dd>
              <div class="listTitle"><?php echo $item->u_name; ?></div>
              <div class="listTool">
                <a href="<?php echo site_url('mang/users/action'); ?>?id=<?php echo $item->u_id; ?>">编辑</a>
                <?php if($logName != $item->u_name): ?>
                <a href="<?php echo site_url('mang/users/delete'); ?>?id=<?php echo $item->u_id; ?>" class="del">删除</a>
                <?php endif; ?>
              </div>
            </dd>
          </dl>
          <?php endforeach; ?>
        </div>
        </form>
      </div>
      <div class="eTool">
        <ul>
          <li>共计 <?php echo count($userList); ?> 个</li>
        </ul>
      </div>
    </div>
  </body>
</html>
